﻿/**
    基于flex布局的流程步骤显示样式
*/
.process {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    font-size: 14px;
}

.process .process-item {
    flex: 2 0 0;
    text-align: center;
}

.process .process-item:first-child, .process .process-item:last-child{
    flex: 1 1 0;
}

.process .process-item .process-title {
    margin: 20px 0 0 0;
}

.process .process-item .process-step {
    margin: 20px 0 0 0;
}

.process .process-item .process-title a {
    color: #999999;
}

.process .process-item .process-info {
    margin: 15px 0;
    font-size: 12px;
    color: #82939e;
}

.process .process-item .process-step {
    position: relative;
    width: 100%;
    height: 24px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    z-index: 2;
    color: #FFFFFF;
}

.process .process-item .process-step:before {
    content: '';
    width: 26px;
    height: 26px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    z-index: -1;
    background-color: #cccccc;
}

.process .process-item .process-step:after {
    content: '';
    width: 34px;
    height: 34px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    z-index: -2;
    background-color: #eaeaea;
}

.process .process-item:not(:last-child) .process-step:before {
    position: absolute;
    left:calc(50% - 13px);
    left:-webkit-calc(50% - 13px);
    left:-moz-calc(50% - 13px);
    top: -1px;
}


.process .process-item:not(:last-child) .process-step:after {
    position: absolute;
    left:calc(50% - 17px);
    left:-webkit-calc(50% - 17px);
    left:-moz-calc(50% - 17px);
    top: -5px;
}

.process .process-item .process-step .process-hollow {
    position: absolute;
    top: 30%;
    left: 0;
    height: 10px;
    width: 100%;
    background-color: #eaeaea;
    z-index: -3;
}

.process .process-item .process-hollow:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    height: 4px;
    width: 100%;
    z-index: 1;
}

.process .process-item.active .process-hollow:before,
.process .process-item.active .process-step:before {
    background-color: #428bca;
}

.process .process-item.error .process-hollow:before,
.process .process-item.error .process-step:before {
    background-color: #d9534f;
}

.process .process-item.active .process-title a {
    color: #428bca;
}

.process .process-item.error .process-title a {
    color: #d9534f;
}

.process .process-item.current .process-title a {
    color: #333333;
    font-weight: 600;
}

/*第一个步骤与最后一个步骤*/
.process .process-item:first-child {
    text-align: left;
}

.process .process-item:last-child {
    text-align: right;
}

.process .process-item:first-child .process-step {
    text-align: left;
}

.process .process-item:last-child .process-step{
    text-align: right;
}

.process .process-item:first-child .process-step:before {
    position: absolute;
    left: -6px;
}

.process .process-item:first-child .process-step:after {
    position: absolute;
    left: -10px;
}

.process .process-item:last-child .process-step:before {
    position: absolute;
    top: -1px;
    right: -6px;
}

.process .process-item:last-child .process-step:after {
    position: absolute;
    top: -5px;
    right: -10px;
}

.process .process-item:last-child .process-step {
    margin-left: auto;
    margin-right: auto;
}

/*清除浮动的div*/
.process .process-item:last-child .clear-float {
    clear:both;
    float:none;
    height:0;
    overflow:hidden;
}